package com.mall.dubbo.api;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mall.dubbo.mappers.PmsProductAttributeCategoryMapper;
import com.tanhua.model.domain.PmsProductAttribute;
import com.tanhua.model.domain.PmsProductAttributeCategory;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Slf4j
@DubboService
public class PmsProductAttributeCategoryApiImpl implements PmsProductAttributeCategoryApi{
    @Autowired
    private PmsProductAttributeCategoryMapper pmsProductAttributeCategoryMapper;


    /**
     * 分页获取所有商品属性分类
     */
    @Override
    public Page categoryList(Page<PmsProductAttributeCategory> pmsProductAttributeCategoryPage) {
        return pmsProductAttributeCategoryMapper.selectPage(pmsProductAttributeCategoryPage,new LambdaQueryWrapper<>());
    }
}
